package com.seo.mapper.user.recharge;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

public interface RechargeMapper {

	String getRechargeType(@Param("type")String type, @Param("num")int num);

	List<Map<String, Object>> getRechargeDetailList(Map<String, Object> params);

	int saveRechargeDetail(Map<String, Object> params);
	
	/**
	 * 充值明细
	 * @param param 参数
	 * @return
	 */
	@MapKey("balanceDate")
	Map<String, Map<String, Object>> getReportRechargeDay(Map<String, Object> param);
	
	/**
	 * 统计充值金额
	 * @param param
	 * @return
	 */
	BigDecimal getReportRechargeSum(Map<String, Object> param);

}
